package org.NooLab.structures.infra.remotely;

import java.io.Serializable;




/**
 * 
 * this class is used for transferring commands between applications 
 * that are communicating via TCP on a local machine
 * 
 * examples: "close", ["delayed", "immediate"]
 *           "restart" , ["", "requester"]  + data = jarfilepath, + cmdline-parameters 
 * 
 *
 */
public class ActionRequest implements ActionRequestIntf, Serializable{

	String cmdFamily="";
	String cmdDetail="";
	private Object object;
	
	public ActionRequest ( String cmdFamily, String cmdDetail){
		this.cmdFamily= cmdFamily;
		this.cmdDetail= cmdDetail;
	}
	
	public void addData(Object obj){
		object = obj;
	}

	public String getCmdFamily() {
		return cmdFamily;
	}

	public void setCmdFamily(String cmdFamily) {
		this.cmdFamily = cmdFamily;
	}

	public String getCmdDetail() {
		return cmdDetail;
	}

	public void setCmdDetail(String cmdDetail) {
		this.cmdDetail = cmdDetail;
	}

	public Object getObject() {
		return object;
	}

	public void setObject(Object object) {
		this.object = object;
	}
	
	
}
